﻿<UserControl x:Class="Save_Editor.Controls.ctrlInventoryData"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:m="clr-namespace:Save_Editor.Controls"
             mc:Ignorable="d" Height="401" Width="536" MinWidth="536" MinHeight="401" MaxWidth="536" MaxHeight="401">
    <Grid>
        <Label Content="GridWidth" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" VerticalAlignment="Top" />
        <Label Content="GridHeight" Height="28" HorizontalAlignment="Left" Margin="6,35,0,0" VerticalAlignment="Top" />
        <TextBox Text="{Binding GridWidth, Converter={StaticResource appsTi}}" Height="23" HorizontalAlignment="Left" Margin="93,8,0,0" VerticalAlignment="Top" Width="46" MaxLength="4" />
        <TextBox Text="{Binding GridHeight, Converter={StaticResource appsTi}}" Height="23" HorizontalAlignment="Left" Margin="93,37,0,0" VerticalAlignment="Top" Width="46" MaxLength="4" />
        <ListBox HorizontalAlignment="Left" Margin="6,69,0,0" Name="listItems" Width="133" SelectionChanged="bmChooseItem" ItemsSource="{Binding Items}" Height="295" VerticalAlignment="Top" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <m:ctrtListItem/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <m:ctrlItemSaveData Margin="145,6,0,0" HorizontalAlignment="Left" Width="457" Height="416" VerticalAlignment="Top" x:Name="ItemData" />
        <Button Content="Add" Height="23" HorizontalAlignment="Right" Margin="0,0,6,6" VerticalAlignment="Bottom" Width="75" Click="bmAddItem" />
    </Grid>
</UserControl>
